package com.itkaige.boot.mapper;

import com.itkaige.boot.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper   //表示这是一个mybatis的mapper类
@Repository
public interface ProductMapper {
    List<Product> selectAll();
    Product selectById(int id);
    int updatePro(Product product);
    int addPro(Product product);
    int deletePro(int id);

}
